package utils

import (
	"git.mycaigou.com/gfyx/common/authorize"
	"github.com/gin-gonic/gin"
)


func SetLoginContext(ctx *gin.Context, uid, tenantCode, userCode string) {
	ctx.Set(authorize.GLOBAL_USER_ID, uid)
	ctx.Set(authorize.TENANT_CODE_KEY, tenantCode)
	ctx.Set(authorize.TENANT_USER_CODE, userCode)
}
